<extend name="Public/base"/>
<block name="header">
  <h1>Step.2</h1>
  <h2>创建数据库</h2>
  <h5>填写数据库及站点相关信息</h5>
</block>
<block name="body">
  <?php
        defined('SAE_MYSQL_HOST_M') or define('SAE_MYSQL_HOST_M', '127.0.0.1');
        defined('SAE_MYSQL_HOST_M') or define('SAE_MYSQL_PORT', '3306');
    ?>
  <form action="__SELF__" method="post" target="_self" id="form">
    <div class="form-box control-group">
      <fieldset><input name="db[]" type="hidden" value="mysql" />
          <div>
            <label>数据库服务器</label>
            <input type="text" name="db[]" value="<defined name='SAE_MYSQL_HOST_M'>{$Think.const.SAE_MYSQL_HOST_M}<else/>127.0.0.1</defined>">
            <span>数据库服务器IP，一般为127.0.0.1</span>
          </div>
          <div>
            <label>数据库名</label>
            <input type="text" name="db[]" value="<defined name='SAE_MYSQL_DB'>{$Think.const.SAE_MYSQL_DB}</defined>">
          </div>
          <div>
            <label>数据库用户名</label>
            <input type="text" name="db[]" value="<defined name='SAE_MYSQL_USER'>{$Think.const.SAE_MYSQL_USER}</defined>">
          </div>
          <div>
            <label>数据库密码</label>
            <input type="password" name="db[]" value="<defined name='SAE_MYSQL_PASS'>{$Think.const.SAE_MYSQL_PASS}</defined>">
          </div>
          <div>
            <label>数据库端口</label>
            <input type="text" name="db[]" value="<defined name='SAE_MYSQL_PORT'>{$Think.const.SAE_MYSQL_PORT}<else/>3306</defined>">
            <span>数据库服务连接端口，一般为3306</span> </div>
          <div>
            <label>数据表前缀</label>
            <input type="text" name="db[]" value="gms_">
            <span>同一个数据库运行多个系统时请修改为不同的前缀</span>
          </div>
      </fieldset>
      <fieldset>
        <legend>创始人信息</legend>
        <div>
          <label>用户名</label>
          <input type="text" name="admin[]" value="admin">
        </div>
        <div>
          <label>密码</label>
          <input type="password" name="admin[]" value="">
        </div>
        <div>
          <label>确认密码</label>
          <input type="password" name="admin[]" value="">
        </div>
        <div>
          <label>邮箱</label>
          <input type="text" name="admin[]" value="">
          <span>请填写正确的邮箱便于收取提醒邮件</span> </div>
      </fieldset>
    </div>
  </form>
</block>
<block name="footer">
<a class="btn btn-success btn-large" href="{:U('Install/step1')}">上一步</a>
<a id="next" href="javascript:void(0);" class="btn btn-primary" onclick="$('#form').submit();return false;">下一步</a></div>
</block>
